{"mode":"Text","textContent":"#region VEXcode Generated Robot Configuration\nfrom vex import *\nimport urandom\n\n# Brain should be defined by default\nbrain=Brain()\n\n# Robot configuration code\nbrain_inertial = Inertial()\nIntakeGroup_motor_a = Motor(Ports.PORT5, False)\nIntakeGroup_motor_b = Motor(Ports.PORT11, True)\nIntakeGroup = MotorGroup(IntakeGroup_motor_a, IntakeGroup_motor_b)\nArmGroup_motor_a = Motor(Ports.PORT6, True)\nArmGroup_motor_b = Motor(Ports.PORT12, False)\nArmGroup = MotorGroup(ArmGroup_motor_a, ArmGroup_motor_b)\nTopTouchLED = Touchled(Ports.PORT10)\nIntakeBumper = Bumper(Ports.PORT3)\nIntakeOptical = Optical(Ports.PORT4)\nFrontDistance = Distance(Ports.PORT9)\nleft_drive_smart = Motor(Ports.PORT1, 1, False)\nright_drive_smart = Motor(Ports.PORT7, 1, True)\n\ndrivetrain = SmartDrive(left_drive_smart, right_drive_smart, brain_inertial, 200)\n\n\ndef calibrate_drivetrain():\n    # Calibrate the Drivetrain Inertial\n    sleep(200, MSEC)\n    brain.screen.print(\"Calibrating\")\n    brain.screen.next_row()\n    brain.screen.print(\"Inertial\")\n    brain_inertial.calibrate()\n    while brain_inertial.is_calibrating():\n        sleep(25, MSEC)\n    brain.screen.clear_screen()\n    brain.screen.set_cursor(1, 1)\n#endregion VEXcode Generated Robot Configuration\n\n# ------------------------------------------\n# \n# \tProject:      VEXcode Project\n# \tAuthor:       VEX\n# \tCreated:\n# \tDescription:  VEXcode IQ Python Project\n# \n# ------------------------------------------\n\n# Library imports\nfrom vex import *\n\n# Begin project code\n","textLanguage":"python","rconfig":[{"port":[5,11],"name":"IntakeGroup","customName":true,"deviceType":"MotorGroup","deviceClass":"motor_group","setting":{"fwd":"forward","rev":"reverse","motor_a_reversed":"false","motor_b_reversed":"true"}},{"port":[6,12],"name":"ArmGroup","customName":true,"deviceType":"MotorGroup","deviceClass":"motor_group","setting":{"fwd":"forward","rev":"reverse","motor_a_reversed":"true","motor_b_reversed":"false"}},{"port":[10],"name":"TopTouchLED","customName":true,"deviceType":"TouchLED","deviceClass":"touchled","setting":{}},{"port":[3],"name":"IntakeBumper","customName":true,"deviceType":"Bumper","deviceClass":"bumper","setting":{}},{"port":[4],"name":"IntakeOptical","customName":true,"deviceType":"Optical","deviceClass":"optical","setting":{}},{"port":[9],"name":"FrontDistance","customName":true,"deviceType":"Distance","deviceClass":"distance","setting":{}},{"port":[1,7,0],"name":"drivetrain","customName":false,"deviceType":"Drivetrain","deviceClass":"smartdrive","setting":{"type":"2-motor","wheelSize":"200mm","gearRatio":"1:1","direction":"fwd","gyroType":"integrated","width":"173","unit":"mm","wheelbase":"76","wheelbaseUnit":"mm","xOffset":"0","yOffset":"0","thetaOffset":"0"}}],"slot":0,"platform":"IQ","sdkVersion":"20220726.10.00.00","appVersion":"2.4.5","minVersion":"2.4.0","fileFormat":"1.2.0","icon":"","targetBrainGen":"Second","target":"Physical"}